using System;
using System.Text;
using UnityEngine;

public static class URLs
{
	public static string pathToServer = "https://secure.pixelgunserver.com/";

	public static string bcwServer = "http://bcwserver.com/blockcity/action.php";

	public static string Advert
	{
		get
		{
			return pathToServer + "advert_bcw_release_Android.json";
		}
	}

	public static string Neutrino
	{
		get
		{
			string text = "bcw-config/";
			return pathToServer + text + "neutrino_switcher_android.json";
		}
	}

	public static string InAppSubscriptions
	{
		get
		{
			string text = "bcw-config/subscription/";
			return pathToServer + text + "inapp_subscription_bcw_android_new.json";
		}
	}

	public static string InAppPromo
	{
		get
		{
			string text = "bcw-config/inapp_promo_new/";
			return pathToServer + text + "inapp_promo_bcw_android_new.json";
		}
	}

	public static string MarketSales
	{
		get
		{
			string text = "bcw-config/";
			string text2 = "sale/";
			return pathToServer + text + text2 + "market_sales_bcw_android.json";
		}
	}

	public static string EventX3
	{
		get
		{
			if (BCWDebug.isDebugBuild)
			{
				return pathToServer + "pixelgta/event_x3_test.json";
			}
			if (Application.platform == RuntimePlatform.IPhonePlayer)
			{
				return pathToServer + "pixelgta/event_x3_ios.json";
			}
			if (Application.platform == RuntimePlatform.Android)
			{
				return pathToServer + "pixelgta/event_x3_android.json";
			}
			return string.Empty;
		}
	}

	public static string Reputation
	{
		get
		{
			string text = "bcw-config/respect/";
			string empty = string.Empty;
			return string.Concat(str2: BCWDebug.isDebugBuild ? "bcw_rep_test.json" : ((Application.platform != RuntimePlatform.Android) ? "bcw_rep_ios(x10).json" : "bcw_rep_playstore(x10).json"), str0: pathToServer, str1: text);
		}
	}

	public static string ABTest
	{
		get
		{
			return pathToServer + "bcw-config/AbTest/bcw_ab_test.json";
		}
	}

	public static string MapData
	{
		get
		{
			string text = "bcw-config/";
			string empty = string.Empty;
			return string.Concat(str2: BCWDebug.isDebugBuild ? "bcw_pvp_maps_test.json" : ((Application.platform != RuntimePlatform.Android) ? "bcw_pvp_maps_ios.json" : "bcw_pvp_maps_playstore.json"), str0: pathToServer, str1: text);
		}
	}

	public static string ChestBonus
	{
		get
		{
			string empty = string.Empty;
			string text = "bcw-config/";
			return string.Concat(str2: BCWDebug.isDebugBuild ? "bcw_chest_test.json" : ((Application.platform != RuntimePlatform.Android) ? "bcw_chest_ios.json" : "bcw_chest_android.json"), str0: pathToServer, str1: text);
		}
	}

	public static string Sale
	{
		get
		{
			string empty = string.Empty;
			string text = "bcw-config/";
			return string.Concat(str2: BCWDebug.isDebugBuild ? "sale_bcw_test.json" : ((Application.platform != RuntimePlatform.Android) ? "sale_bcw_ios.json" : "sale_bcw_playstore.json"), str0: pathToServer, str1: text);
		}
	}

	public static string ModSettings
	{
		get
		{
			string text = "bcw-config/";
			string text2 = "New_ModSettings_bcw.json";
			return pathToServer + text + text2;
		}
	}

	public static string CheckVersion
	{
		get
		{
			string text = "bcw-config/";
			string empty = string.Empty;
			empty = "bcw_version_playstore.json";
			return pathToServer + text + empty;
		}
	}

	public static string FriendsSettings
	{
		get
		{
			string text = "bcw-config/friends/";
			string empty = string.Empty;
			empty = "bcw_friends_settings_playstore.json";
			return pathToServer + text + empty;
		}
	}

	public static string ModeNameSettings
	{
		get
		{
			string text = "bcw-config/modename/";
			string empty = string.Empty;
			empty = "bcw_mode_name_settings_playstore.json";
			return pathToServer + text + empty;
		}
	}

	public static string Marathon
	{
		get
		{
			string empty = string.Empty;
			string text = "bcw-config/";
			return string.Concat(str2: BCWDebug.isDebugBuild ? "bcw_marathon_test.json" : ((Application.platform != RuntimePlatform.Android) ? "bcw_marathon_ios(x10).json" : "bcw_marathon_playstore(x10).json"), str0: pathToServer, str1: text);
		}
	}

	public static string BestProduct
	{
		get
		{
			string empty = string.Empty;
			string text = "bcw-config/";
			return string.Concat(str2: BCWDebug.isDebugBuild ? "best_product_test.json" : ((Application.platform != RuntimePlatform.Android) ? "best_product_ios.json" : "best_product_playstore.json"), str0: pathToServer, str1: text);
		}
	}

	internal static string Sanitize(WWW request)
	{
		if (request == null)
		{
			return string.Empty;
		}
		if (!request.isDone)
		{
			throw new InvalidOperationException("Request should be done.");
		}
		if (!string.IsNullOrEmpty(request.error))
		{
			return string.Empty;
		}
		UTF8Encoding uTF8Encoding = new UTF8Encoding(false);
		return uTF8Encoding.GetString(request.bytes, 0, request.bytes.Length).Trim();
	}
}
